Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create home directory in docker images #4987

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

denyeart
Copy link
Contributor

The recent change to use useradd -M in baseos and ccenv Docker images caused building of Go chaincodes to fail with error:

"failed to initialize build cache at /home/chaincode/.cache/go-build: mkdir /home/chaincode: permission denied"

Changing it back to allow creation of the chaincode home directory with useradd -m solves the problem.

The recent change to use `useradd -M` in baseos and ccenv
Docker images caused building of Go chaincodes to fail with error:

"failed to initialize build cache at /home/chaincode/.cache/go-build: mkdir /home/chaincode: permission denied"

Changing it back to allow creation of the chaincode home directory
with `useradd -m` solves the problem.

Signed-off-by: David Enyeart <enyeart@us.ibm.com>
@denyeart denyeart requested a review from a team as a code owner September 18, 2024 00:26
Copy link
Contributor

@satota2 satota2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@denyeart LGTM!

@satota2 satota2 enabled auto-merge (rebase) September 18, 2024 00:33
@satota2 satota2 merged commit c069c69 into hyperledger:main Sep 18, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants